package cn.stylefeng.guns.goodsdetail.service;

import cn.stylefeng.guns.core.pojo.page.PageResult;
import cn.stylefeng.guns.goods.entity.Goods;
import cn.stylefeng.guns.goodsdetail.dto.GoodsDetailDTO;
import cn.stylefeng.guns.goodsdetail.entity.GoodsDetail;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * goods_detail 服务类
 *
 * @author aria
 * @date 2021/02/20 20:24
 */
public interface GoodsDetailService extends IService<GoodsDetail> {

    /**
     * 分页查询goods_detail
     *
     * @author aria
     * @date 2021/02/20 20:24
     */
    PageResult<GoodsDetail> page(GoodsDetailDTO foodsDetailDTO);

    /**
     * 查询所有goods_detail
     *
     * @author aria
     * @date 2021/02/20 20:24
     */
    List<GoodsDetail> list(GoodsDetailDTO foodsDetailDTO);

    /**
     * 添加goods_detail
     *
     * @author aria
     * @date 2021/02/20 20:24
     */
    void add(GoodsDetailDTO foodsDetailDTO);

    /**
     * 删除goods_detail
     *
     * @author aria
     * @date 2021/02/20 20:24
     */
    void delete(GoodsDetailDTO foodsDetailDTO);

    /**
     * 编辑goods_detail
     *
     * @author aria
     * @date 2021/02/20 20:24
     */
    void edit(GoodsDetailDTO foodsDetailDTO);

    /**
     * 编辑goods_detail
     *
     * @author aria
     * @date 2021/02/20 20:24
     */
    void update(GoodsDetail goodsDetail);

    /**
     * 查看详情goods_detail
     *
     * @author aria
     * @date 2021/02/20 20:24
     */
    GoodsDetail detail(GoodsDetailDTO foodsDetailDTO);

    /**
     * 根据goods编号查找详情图片
     *
     * @param goods
     * @return
     */
    List<GoodsDetail> getListByGoodsId(Goods goods);

    void insert(GoodsDetail goodsDetail);

}